package com.smile.api;

import cn.dev33.satoken.annotation.SaIgnore;
import com.smile.commons.page.R;
import com.smile.model.request.ExecuteOnSiteInspectionRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "smile-plus-standalone-task", contextId = "onSiteInspection", path = "/api/task")
public interface OnSiteInspectionApi {

    @PostMapping("/onSiteInspection/executeOnSiteInspection")
    R<Void> executeOnSiteInspection(@RequestBody ExecuteOnSiteInspectionRequest executeOnSiteInspectionRequest);


    @PostMapping("/onSiteInspection/deleteOnSiteInspectionByOrganizationId")
    R<Void> deleteOnSiteInspectionByOrganizationId(@RequestBody Long id);
}
